import round from "lodash/round";
// import fillZero from "ynw/fillZero";
import fillZero from "./fillZero";

export function fillNumber(num, count = 2) {
  return fillZero(round(num, count), count);
}

/**
 * 转换成三分法数字
 * @param {*} num
 */
export function toLocalString(num) {
  return String(num.toLocaleString("en-US")).replace(/\d$/, "");
}
